package com.mall.db.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.db.mapper.CmsPrefrenceAreaMapper;
import com.mall.pojo.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CmsPrefrenceArealmpl implements CmsPrefrenceAreaApi {
    @Autowired
    private CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;

    //获取所有商品优选
    @Override
    public List<CmsPrefrenceArea> listAll() {
        LambdaQueryWrapper<CmsPrefrenceArea> w = new LambdaQueryWrapper<>();
        return cmsPrefrenceAreaMapper.selectList(w);
    }
}
